import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";

@Entity("webxue_sys_config")
export class SysConfigEntity {

  @PrimaryGeneratedColumn({ comment:"主键id" })
  id:number | string;

  @Column({ type:"varchar", comment:"配置标识" })
  code:Code | string;

  @Column({ type:"text", comment:"配置详情,json字符串" })
  config:string;

  @Column({ type:"varchar", comment:"文本label，如：站点配置、上传配置" })
  label:string;
}

// WEBSITE:站点配置
export type Code = "WEBSITE"